package com.it.entity;

/**
 */
public class User {
    private Long id;
    private String name;
    private int age;
    private String work;
    private String title;

    public User(Long id, String name) {
        this.id = id;
        this.name = name;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getWork() {
        return work;
    }

    public void setWork(String work) {
        this.work = work;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public void doSomething() {
        System.out.println("我在做一些事情");
    }

    public void repairCar() {
        System.out.println("修着小汽车，哈哈哈...");
    }

    @java.lang.Override
    public java.lang.String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", work='" + work + '\'' +
                ", title='" + title + '\'' +
                '}';
    }
}

